package com.hyj.shop.project.goods.controller;

import com.hyj.shop.project.goods.service.GoodsTypeService;
import com.hyj.shop.project.utils.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/api/goodsType")
public class GoodsTypeController {
    @Autowired
    private GoodsTypeService goodsTypeService;
    @RequestMapping(value = "/findAll")
    @ResponseBody
    public AjaxResult findAll(){
        System.out.println("-------------");
        return goodsTypeService.findAll();
    }
}
